package com.example.tilitili.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.tilitili.pojo.Order;
import com.example.tilitili.vo.GoodsVo;
import com.example.tilitili.vo.OrderDetailVo;
import com.example.tilitili.vo.OrderVo;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liu
 * @since 2022-01-17
 */
public interface OrderMapper extends BaseMapper<Order> {
    /**
     * 返回全部订单
     * @return
     */
    List<OrderVo> findOrderVo();
    /**
     * 根据订单号查找订单
     */
    OrderDetailVo findOrderDetailVoByOrderId(Long orderId);
}
